The client calls XMLHTTP in five steps:1. Create an XMLHTTP object2. Open the connection with the server, and define the command sending method, Service webpage (URL), and request permissions.The client opens a connection to the Service webpage of
Compared with Ajax, XMLHTTP on the server uses the XMLHTTPRequest object on the server. Although it is inconvenient to use asynchronous requests on the server side, it is no harm to learn it as a component that can send HTTP requests on the server
In contrast to Ajax, service-side XMLHTTP is the use of XMLHttpRequest objects on the server side. Although it is not convenient to use asynchronous requests on the server side, it is no harm to learn as a component that can send HTTP requests to
MSXML provides Microsoft. XMLHTTP objects, which can complete conversion from data packets to request objects and send tasks.
The statement for creating an XMLHTTP object is as follows:
Set objxml = Createobject ("msxml2.xmlhttp ")Or
Set objxml =
About the status attribute value of the XMLHTTPRequest object in Ajax
In Ajax, the status attribute of the XMLHTTPRequest object is generally used to return the HTTP status code of the server. Status 200 indicates "successful", and status 404
In Ajax, the status attribute of the XMLHttpRequest object is generally used to return the HTTP status code of the server. Status 200 indicates "successful", and status 404 indicates "Page not found ". Many books are written in this way, which is
Microsoft. XMLHttp component attributes1. steps:1. Create an XMLHTTP object // MSXML4.0 is required2. Open the connection with the server, and define the command sending method, Service webpage (URL), and request permissions. The client opens a
In Ajax, there is a check in the status code,
Xmlhttp.onreadystatechange=handlestatechange;
function Handlestatechange (){if (xmlhttp.readystate==4){if (xmlhttp.status==200){Parseresults (); Resolve return value}}}
What do you mean by readyState
The XMLHTTP object is an HTTP-based, XML-based Web Resource object included in Microsoft's MSXML development kit. it appears from msxml3.0. it is mainly used in Ajax technology to obtain information from other network resources, and then Javascript
The XMLHTTP object is an HTTP-based, XML-based Web Resource object included in Microsoft's MSXML development kit. it appears from msxml3.0. it is mainly used in Ajax technology to obtain information from other network resources, and then Javascript
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.